package com.healthdata.controller;

import com.healthdata.service.HospitalBedSizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/api/hospital-beds")
public class HospitalBedSizeController {

    @Autowired
    private HospitalBedSizeService hospitalBedSizeService;

    @GetMapping("/distribution")
    public Map<String, Object> getHospitalBedDistribution() {
        return hospitalBedSizeService.getHospitalBedDistribution();
    }
}
